﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="CreateAnEvent" EnableEventValidation="false"
    ValidateRequest="false" CodeBehind="CreateAnEvent.aspx.cs" %>
<%@ Register Assembly="AjaxControlLib" Namespace="AjaxControlLib" TagPrefix="cc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Client Meeting Tool - Events</title>
    <script src="Scripts/jquery-1.9.1.js" type="text/javascript"></script>
    <link type="text/css" href="NAC.css" rel="stylesheet" />
    <link href="CSS/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-ui-1.10.3.custom.js" type="text/javascript"></script>
    <style>
        body
        {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 9pt;
        }
        .Button
        {
            background-color: #1e8ce1;
            border: #0d5b97 1px solid;
            color: #FFFFFF;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 9pt;
            padding: 3px;
        }
        .Button_TopPad
        {
            background-color: #1e8ce1;
            border: #0d5b97 1px solid;
            color: #FFFFFF;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 9pt;
            padding: 3px;
            margin-top: 5px;
        }
        .Button_TBPad
        {
            background-color: #1e8ce1;
            border: #0d5b97 1px solid;
            color: #FFFFFF;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 9pt;
            padding: 3px;
            margin-top: 5px;
            margin-bottom: 5px;
        }
        .Button_GridTBRPad
        {
            background-color: #1e8ce1;
            border: #0d5b97 1px solid;
            color: #fff;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 9pt;
            margin-top: 5px;
            margin-bottom: 5px;
            margin-right: 5px;
        }
        
        
        .overlay
        {
            position: absolute;
            background-color: white;
            top: auto;
            left: auto;
            width: 100%;
            height: 100%;
            opacity: 0.8;
            -moz-opacity: 0.8;
            filter: alpha(opacity=60);
            -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
            z-index: 10000;
            text-align: center;
            padding-top: 25%;
        }
        .style1
        {
            width: 35px;
        }
        .style2
        {
            width: 42px;
        }
    </style>
</head>
<body style="height: 212px">
    <script type="text/javascript" language="javascript">
        var lastTab;
        function SetAttendeeSelectedTab(index) {
            lastTab = index;
            $("#AttendeeTabContainer").tabs({
                active: lastTab,
                beforeActivate: function (event, ui) {
                    lastTab = ui.index;
                }
            });
        }
        function SetTabs() {
            $("#div_Events").tabs();
            $("#AttendeeTabContainer").tabs({
                active: lastTab,
                beforeActivate: function (event, ui) {
                    lastTab = ui.index;
                }
            });
        }
        $(function () {
            if (lastTab == undefined) {
                lastTab = 0
            }
            SetTabs();
            $('.mydatepickerclass').datepicker({ showOn: "button",
                buttonImage: "_includes/images/ico_calbtn.gif",
                dateFormat: 'MM dd, yy',
                buttonImageOnly: true, onSelect: function () { }


            });
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
            $('.mydatepickerclass').attr("disabled", "disabled");

            function EndRequestHandler(sender, args) {
                $('.mydatepickerclass').datepicker({ showOn: "button",
                    buttonImage: "_includes/images/ico_calbtn.gif",
                    dateFormat: 'MM dd, yy',
                    buttonImageOnly: true, onSelect: function () { }
                });

                $('.mydatepickerclass').attr("disabled", "disabled");
            }
        });
        function ChangeTab() {
            $("#div_Events").tabs({
                active: 0
            });
            lastTab = 0;
            $('#AttendeeTabContainer').tabs({
                active: lastTab,
                beforeActivate: function (event, ui) {
                    lastTab = ui.index;
                }
            });
            return false;
        }

        function SetEventTab() {
            $("#div_Events").tabs({
                active: 1
            });
            return false;
        }


        function setRoomSelection(chk, roomId) {
            var hdn = document.getElementById("hdnSelectedRooms");
            var arr = hdn.value.split(',');
            var foundIndex = -1;

            if (hdn.value != '') {
                for (var idx = 0; idx < arr.length; idx++) {
                    if (arr[idx] == roomId) {
                        foundIndex = idx;
                        break;
                    }
                }
            }

            if (chk.checked && foundIndex == -1) {
                hdn.value = hdn.value + roomId + ",";  // add room
            }
            else if (!chk.checked && foundIndex > -1) {//remove room
                hdn.value = '';
                for (var idx = 0; idx < arr.length - 1; idx++) {
                    if (idx != foundIndex) {
                        hdn.value = hdn.value + arr[idx] + ",";
                    }
                }
            }
        }

        function toggleDiv(id, parentid) {
            var selecteddiv = document.getElementById(id);
            var parentddiv = document.getElementById(parentid);

            if (selecteddiv.style.display.toString() == "block") {
                selecteddiv.style.display = "none";
                parentddiv.setAttribute("text", "Hide Attendee\Room");
            }
            else {
                selecteddiv.style.display = "block";
                parentddiv.setAttribute("text", "Show Attendee\Room");
            }
        }

        // Function to validate the max length of multiline textbox.
        function truncMaxLength(txtControl, maxLength) {
            try {
                if (txtControl.value.length > maxLength) {
                    txtControl.value = txtControl.value.substring(0, maxLength);
                    alert("Maximum charactors allowed is - " + maxLength.toString());
                    return false;
                }
            }
            catch (e) {
            }
        }

        function setFeedbackVisibility(isParticipant) {
            var trIssuesDiscussion = document.getElementById('<%= trIssuesDiscussion.ClientID%>');
            var trPrivateSession = document.getElementById('<%= trPrivateSession.ClientID%>');
            var trSendFeedback = document.getElementById('<%= trSendFeedback.ClientID%>');
            var trHost = document.getElementById('<%= trHost.ClientID%>');

            if (isParticipant == 'OwnClient') {
                trSendFeedback.style.display = "inline";
                trHost.style.display = "inline";

                trIssuesDiscussion.style.display = "none";
                trPrivateSession.style.display = "none";
            }
            else {
                trSendFeedback.style.display = "none";
                trHost.style.display = "none";

                trIssuesDiscussion.style.display = "inline";
                trPrivateSession.style.display = "inline";
            }
        }

        function selectAllChk() {
            var isChk = false;
            var btn = document.getElementById("<%= btnSelectAll.ClientID %>");
            if (btn.value == "Select All Questions") {
                isChk = true;
                btn.value = "Unselect All Questions"
            }
            else {
                isChk = false;
                btn.value = "Select All Questions"
            }

            var questionsGrid = document.getElementById("<%= ugQuestions.ClientID %>");
            $(questionsGrid).find("[type='checkbox']").prop('checked', isChk);
        }
 
    </script>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="scm" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="uprgProgressBar" runat="server" DynamicLayout="true">
        <ProgressTemplate>
            <div class="overlay">
                <img src="_includes/images/prog.gif" />
                Loading...
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <div id="divBanner" style="z-index: 5000">
        <cc2:Banner ID="Banner1" runat="server" Width="100%" />
    </div>
    <asp:UpdatePanel ID="updEventDetails" runat="server" ChildrenAsTriggers="true">
        <ContentTemplate>
            <div id="div_Events">
                <ul>
                    <li><a href="#tpEditEvent">Create/Edit Event</a></li>
                    <li><a href="#tpSearchEvent">Search Event</a></li>
                </ul>
                <div id="tpEditEvent" style="width: 100%">
                    <div>
                        <asp:UpdatePanel ID="updEditEvent" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
                            <ContentTemplate>
                                <table style="width: 100%; margin: 5px 15px 5px 15px;" cellpadding="0" cellspacing="0">
                                    <tr style="border-color: white;">
                                        <td class="GroupHeader" style="height: 18px; text-align: left;" valign="middle">
                                            Event Details
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblEventMessage" runat="server" Visible="False"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:ValidationSummary ID="valsEvent" HeaderText="Please fix the following errors:"
                                                runat="server" ValidationGroup="eventsave" CssClass="RequiredField" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <br />
                                        </td>
                                    </tr>
                                    <tr style="padding-bottom: 5px;">
                                        <td>
                                            <table style="width: 100%;" cellpadding="0" cellspacing="0">
                                                <tr style="padding-top: 5px;">
                                                    <td style="width: 127px; padding-left: 2px;">
                                                        <asp:Label ID="lbEventName" runat="server">Event Name</asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtEventName" runat="server" Width="240px" CssClass="RequiredField"
                                                            MaxLength="100"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Text="*"
                                                            ErrorMessage="Enter Event Name" ControlToValidate="txtEventName" ValidationGroup="eventsave"></asp:RequiredFieldValidator>
                                                    </td>
                                                    <td rowspan="2" valign="top">
                                                        <table cellpadding="0" cellspacing="0">
                                                            <tr>
                                                                <td style="width: 150px;">
                                                                    <asp:Label ID="lblTimeZone" runat="server">Time Zone</asp:Label>
                                                                </td>
                                                                <td>
                                                                    <asp:DropDownList ID="ddlTimeZones" runat="server" Width="400px" CssClass="RequiredField">
                                                                    </asp:DropDownList>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" Text="*"
                                                                        ErrorMessage="Select a time zone" ControlToValidate="ddlTimeZones" ValidationGroup="eventsave"></asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr style="padding-top: 5px;">
                                                                <td>
                                                                    <asp:Label ID="lbCountry" runat="server">Country Location</asp:Label>
                                                                </td>
                                                                <td>
                                                                    <asp:DropDownList ID="ddlCountry" runat="server" Width="400px" CssClass="RequiredField">
                                                                    </asp:DropDownList>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Text="*"
                                                                        ErrorMessage="Enter Country Location" ControlToValidate="ddlCountry" ValidationGroup="eventsave"></asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr style="padding-top: 5px;">
                                                                <td style="text-align: left;">
                                                                    <asp:Label ID="lbStartDate" runat="server">Event Start Date Time</asp:Label>
                                                                </td>
                                                                <td style="text-align: left">
                                                                    <table cellpadding="0" cellspacing="0">
                                                                        <tr>
                                                                            <td>
                                                                                <asp:TextBox ID="txtStartDate" runat="server" CssClass="mydatepickerclass"></asp:TextBox>
                                                                            </td>
                                                                            <td style="padding-left: 5px; vertical-align: top">
                                                                                <asp:DropDownList ID="ddlStartTimeHrs" runat="server">
                                                                                    <asp:ListItem Value="00">00</asp:ListItem>
                                                                                    <asp:ListItem Value="01">1</asp:ListItem>
                                                                                    <asp:ListItem Value="02">2</asp:ListItem>
                                                                                    <asp:ListItem Value="03">3</asp:ListItem>
                                                                                    <asp:ListItem Value="04">4</asp:ListItem>
                                                                                    <asp:ListItem Value="05">5</asp:ListItem>
                                                                                    <asp:ListItem Value="06">6</asp:ListItem>
                                                                                    <asp:ListItem Value="07">7</asp:ListItem>
                                                                                    <asp:ListItem Value="08">8</asp:ListItem>
                                                                                    <asp:ListItem Value="09">9</asp:ListItem>
                                                                                    <asp:ListItem Value="10">10</asp:ListItem>
                                                                                    <asp:ListItem Value="11">11</asp:ListItem>
                                                                                    <asp:ListItem Value="12">12</asp:ListItem>
                                                                                    <asp:ListItem Value="13">13</asp:ListItem>
                                                                                    <asp:ListItem Value="14">14</asp:ListItem>
                                                                                    <asp:ListItem Value="15">15</asp:ListItem>
                                                                                    <asp:ListItem Value="16">16</asp:ListItem>
                                                                                    <asp:ListItem Value="17">17</asp:ListItem>
                                                                                    <asp:ListItem Value="18">18</asp:ListItem>
                                                                                    <asp:ListItem Value="19">19</asp:ListItem>
                                                                                    <asp:ListItem Value="20">20</asp:ListItem>
                                                                                    <asp:ListItem Value="21">21</asp:ListItem>
                                                                                    <asp:ListItem Value="22">22</asp:ListItem>
                                                                                    <asp:ListItem Value="23">23</asp:ListItem>
                                                                                </asp:DropDownList>
                                                                            </td>
                                                                            <td style="padding-left: 5px; vertical-align: top">
                                                                                <asp:DropDownList ID="ddlStartTimeMns" runat="server">
                                                                                    <asp:ListItem Value="00">00</asp:ListItem>
                                                                                    <asp:ListItem Value="15">15</asp:ListItem>
                                                                                    <asp:ListItem Value="30">30</asp:ListItem>
                                                                                    <asp:ListItem Value="45">45</asp:ListItem>
                                                                                </asp:DropDownList>
                                                                            </td>
                                                                            <td style="vertical-align: middle; padding-left: 5px;">
                                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Text="*"
                                                                                    ErrorMessage="Enter Event Start Date Time" ControlToValidate="txtStartDate" ValidationGroup="eventsave"
                                                                                    Display="Dynamic"></asp:RequiredFieldValidator>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                            <tr style="padding-top: 5px;">
                                                                <td style="text-align: left;">
                                                                    <asp:Label ID="lbEndDate" runat="server">Event End Date Time</asp:Label>
                                                                </td>
                                                                <td>
                                                                    <table cellpadding="0" cellspacing="0">
                                                                        <tr>
                                                                            <td style="vertical-align: top">
                                                                                <asp:TextBox ID="txtEndDate" runat="server" CssClass="mydatepickerclass"></asp:TextBox>
                                                                            </td>
                                                                            <td style="padding-left: 5px; vertical-align: top">
                                                                                <asp:DropDownList ID="ddlEndhour" runat="server">
                                                                                    <asp:ListItem Value="00">00</asp:ListItem>
                                                                                    <asp:ListItem Value="01">1</asp:ListItem>
                                                                                    <asp:ListItem Value="02">2</asp:ListItem>
                                                                                    <asp:ListItem Value="03">3</asp:ListItem>
                                                                                    <asp:ListItem Value="04">4</asp:ListItem>
                                                                                    <asp:ListItem Value="05">5</asp:ListItem>
                                                                                    <asp:ListItem Value="06">6</asp:ListItem>
                                                                                    <asp:ListItem Value="07">7</asp:ListItem>
                                                                                    <asp:ListItem Value="08">8</asp:ListItem>
                                                                                    <asp:ListItem Value="09">9</asp:ListItem>
                                                                                    <asp:ListItem Value="10">10</asp:ListItem>
                                                                                    <asp:ListItem Value="11">11</asp:ListItem>
                                                                                    <asp:ListItem Value="12">12</asp:ListItem>
                                                                                    <asp:ListItem Value="13">13</asp:ListItem>
                                                                                    <asp:ListItem Value="14">14</asp:ListItem>
                                                                                    <asp:ListItem Value="15">15</asp:ListItem>
                                                                                    <asp:ListItem Value="16">16</asp:ListItem>
                                                                                    <asp:ListItem Value="17">17</asp:ListItem>
                                                                                    <asp:ListItem Value="18">18</asp:ListItem>
                                                                                    <asp:ListItem Value="19">19</asp:ListItem>
                                                                                    <asp:ListItem Value="20">20</asp:ListItem>
                                                                                    <asp:ListItem Value="21">21</asp:ListItem>
                                                                                    <asp:ListItem Value="22">22</asp:ListItem>
                                                                                    <asp:ListItem Value="23">23</asp:ListItem>
                                                                                </asp:DropDownList>
                                                                            </td>
                                                                            <td style="padding-left: 5px; vertical-align: top">
                                                                                <asp:DropDownList ID="ddlEndMinute" runat="server">
                                                                                    <asp:ListItem Value="00">00</asp:ListItem>
                                                                                    <asp:ListItem Value="15">15</asp:ListItem>
                                                                                    <asp:ListItem Value="30">30</asp:ListItem>
                                                                                    <asp:ListItem Value="45">45</asp:ListItem>
                                                                                </asp:DropDownList>
                                                                            </td>
                                                                            <td style="vertical-align: middle; padding-left: 5px;">
                                                                                <asp:CustomValidator ID="custStartEndDate" runat="server" ControlToValidate="txtEndDate"
                                                                                    Display="Dynamic" ValidationGroup="eventsave" Text="*" ErrorMessage="Event Start Date is later than Event End Date."></asp:CustomValidator>
                                                                                <asp:CustomValidator ID="custEqStatEndDate" runat="server" ControlToValidate="txtEndDate"
                                                                                    Display="Dynamic" ValidationGroup="eventsave" Text="*" ErrorMessage="Event Start Date is same as Event End Date."></asp:CustomValidator>
                                                                                <asp:CustomValidator ID="custFutureEndDate" runat="server" ControlToValidate="txtEndDate"
                                                                                    Display="Dynamic" ValidationGroup="eventsave" Text="*" ErrorMessage="Event End Date should be a future date and not past date."></asp:CustomValidator>
                                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Text="*"
                                                                                    Display="Dynamic" ErrorMessage="Enter Event End Date Time" ControlToValidate="txtEndDate"
                                                                                    ValidationGroup="eventsave"></asp:RequiredFieldValidator>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <tr style="padding-top: 5px;">
                                                    <td style="vertical-align: top; padding-left: 2px;">
                                                        <asp:Label ID="lbEventDescription" runat="server">Event Description</asp:Label>
                                                    </td>
                                                    <td style="vertical-align: top; width: 260px;">
                                                        <asp:TextBox ID="txtEventDescription" runat="server" TextMode="MultiLine" Width="240px"
                                                            Height="85px" onkeypress="return truncMaxLength(this,'1000');" onblur="truncMaxLength(this,'1000');"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <asp:UpdatePanel ID="upnlFieldAdmin" runat="server" UpdateMode="Conditional">
                                                            <ContentTemplate>
                                                                <fieldset style="padding-left: 2px;">
                                                                    <legend>
                                                                        <asp:Label ID="lbFieldAdmin" runat="server"> <p style="color:#000; padding-right:5px;">Field Administrator</p></asp:Label>
                                                                    </legend>
                                                                    <table cellpadding="0" cellspacing="0">
                                                                        <tr>
                                                                            <td width="120px" style="vertical-align: top; padding-top: 5px;">
                                                                                Admin Name
                                                                            </td>
                                                                            <td>
                                                                                <table cellpadding="0" cellspacing="0" style="vertical-align: middle;">
                                                                                    <tr>
                                                                                        <td style="vertical-align: middle; padding-top: 5px;">
                                                                                            <asp:Panel ID="Panel1" runat="server">
                                                                                                <cc2:EmployeeLookup ID="empLookUp" runat="server" AutoSearch="false" Enabled1="True"
                                                                                                    NameFieldWidth="175" InstanceID="0" Label="" MaxResults="0" Population="WholeFirmActive"
                                                                                                    SearchStringMinimum="1" SecurityGroupID="0" />
                                                                                            </asp:Panel>
                                                                                        </td>
                                                                                        <td style="vertical-align: middle; padding-left: 5px;">
                                                                                            <asp:Button ID="btnAddUsers" Text="Add" runat="server" CssClass="Button_TopPad " />
                                                                                        </td>
                                                                                    </tr>
                                                                                </table>
                                                                            </td>
                                                                        </tr>
                                                                        <tr style="padding-top: 5px;">
                                                                            <td>
                                                                            </td>
                                                                            <td>
                                                                                <asp:ListBox ID="lstAdmins" runat="server" SelectionMode="Multiple" Width="223px">
                                                                                </asp:ListBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td style="vertical-align: middle; padding-top: 5px;">
                                                                                <asp:Button ID="btnRemoveUsers" Text="Remove" runat="server" CssClass="Button" />
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td colspan="2">
                                                                                <asp:Label ID="lblFieldAdminMsg" runat="server" Visible="false"></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </fieldset>
                                                            </ContentTemplate>
                                                        </asp:UpdatePanel>
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            <asp:Button ID="btnCreateEvent" Text="Save Event" runat="server" ValidationGroup="eventsave"
                                                CssClass="Button" />
                                            <asp:Button ID="btnClear" Text="Clear" runat="server" CssClass="Button" />
                                            <asp:Button ID="btnMail" Text="Registration" runat="server" CssClass="Button" Visible="false"
                                                OnClick="btnMail_Click" />
                                            <asp:Button ID="btnMailClient" Text="Client Registration" runat="server" CssClass="Button"
                                                Visible="false" OnClick="btnMailClient_Click" />
                                        </td>
                                    </tr>
                                </table>
                                <div id="div_Attendee" class="divattendee" runat="server" visible="False" style="padding: 10px 5px 10px 15px;">
                                    <div id="AttendeeTabContainer">
                                        <ul>
                                            <li><a href="#tpSearchAttendee">Search Attendee</a></li>
                                            <li><a href="#tpUploadAttendee">Upload Attendee</a></li>
                                            <li><a href="#tpAddEditAttendee">Add/Edit Attendee</a></li>
                                            <li><a href="#tpAddEditRooms">Add/Edit Rooms</a></li>
                                            <li><a href="#tpQuestions">Questions</a></li>
                                        </ul>
                                        <div id="tpSearchAttendee">
                                            <table width="100%" cellpadding="0" cellspacing="0" style="margin: 5px 15px 5px 15px;">
                                                <tr style="border-color: white;">
                                                    <td colspan="4" class="GroupHeader" style="height: 18px; text-align: left;" valign="middle">
                                                        Attendee Search
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4">
                                                        <asp:Label ID="lblSearchAttendee" runat="server" Visible="False"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr style="padding-top: 5px;">
                                                    <td style="width: 10%; padding-left: 2px;">
                                                        <asp:Label ID="lbSFirstName" runat="server">First Name</asp:Label>
                                                    </td>
                                                    <td style="width: 15%;">
                                                        <asp:TextBox ID="txtSFirstName" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
                                                    </td>
                                                    <td style="width: 10%; padding-left: 10px;">
                                                        <asp:Label ID="lbSLastName" runat="server">Last Name</asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtSLastName" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr style="padding-bottom: 5px;">
                                                    <td colspan="4" style="padding-top: 5px; padding-left: 2px;">
                                                        <asp:Button ID="btnSearchAttendee" Text="Search Attendee" runat="server" CssClass="Button" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4" style="padding-left: 2px;">
                                                        <div id="wgAttendeeDiv" runat="server" style="width: 100%">
                                                            <asp:GridView ID="wgAttendee" runat="server" Width="100%" AutoGenerateColumns="false"
                                                                OnRowCommand="wgAttendee_ItemCommand" OnRowDataBound="wgAttendee_OnRowDataBound"
                                                                OnPageIndexChanging="wgAttendee_OnPageIndexChanging">
                                                                <HeaderStyle BackColor="#11459E" BorderStyle="Solid" BorderWidth="1px" Font-Bold="true"
                                                                    Font-Names="Arial" Font-Size="X-Small" ForeColor="#E1E8F5" />
                                                                <RowStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" BackColor="White" />
                                                                <PagerStyle BackColor="#D1D0CE" Wrap="true" Font-Bold="true" HorizontalAlign="Left" />
                                                                <Columns>
                                                                    <asp:TemplateField>
                                                                        <ItemTemplate>
                                                                            <asp:CheckBox ID="chkDelete" runat="server" />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblEventAttendeeID" runat="server" Text='<% #Eval("EventAttendeeID") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblEventID" runat="server" Text='<% #Eval("EventID") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblPrefFormOfAddress" runat="server" Text='<% #Eval("PrefFormOfAddress") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblEmailAddress" runat="server" Text='<% #Eval("EmailAddress") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblOffice" runat="server" Text='<% #Eval("Office") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblCity" runat="server" Text='<% #Eval("City") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblDirectDial" runat="server" Text='<% #Eval("DirectDial") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblMobileNumber" runat="server" Text='<% #Eval("MobileNumber") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblAssistantName" runat="server" Text='<% #Eval("AssistantName") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblAssistantNumber" runat="server" Text='<% #Eval("AssistantNumber") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblAssistantEmail" runat="server" Text='<% #Eval("AssistantEmail") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblVisaRequired" runat="server" Text='<% #Eval("VisaRequired") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblComplimentaryPrivateSessionReq" runat="server" Text='<% #Eval("ComplimentaryPrivateSessionReq") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblCountry" runat="server" Text='<% #Eval("Country") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblCountryIssuesAddressed" runat="server" Text='<% #Eval("CountryIssuesAddressed") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblRegistrationDate" runat="server" Text='<% #Eval("RegistrationDate") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblConfirmationOfAttendance" runat="server" Text='<% #Eval("ConfirmationOfAttendance") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblSpecialtyArea" runat="server" Text='<% #Eval("SpecialtyArea") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Salutation">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblSalutation" runat="server" Text='<% #Eval("Salutation") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="First Name">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblFirstName" runat="server" Text='<% #Eval("FirstName") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Last Name">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblLastName" runat="server" Text='<% #Eval("LastName") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Available Start Date">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblAvailStartDate" runat="server" Text='<% #Eval("AvailStartDate") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Available End Date">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblAvailEndDate" runat="server" Text='<% #Eval("AvailEndDate") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Is Own Client">
                                                                        <ItemTemplate>
                                                                            <asp:CheckBox ID="chkIsClient" runat="server" Checked='<% #Eval("IsClient") %>' />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField>
                                                                        <ItemTemplate>
                                                                            <asp:ImageButton ID="btnEditRoom" runat="server" Style="cursor: pointer;" ToolTip="Edit attendee"
                                                                                CommandName="EditAttendee" AlternateText="Edit" ImageUrl="~/_includes/images/edit.png" />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblFeedbackRequired" runat="server" Text='<% #Eval("FeedbackRequired") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField>
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="lnkSendCalendar" runat="server" ToolTip="Send Calendar" CommandName="calendar"
                                                                                AlternateText="Send Calendar" Text="Send Calendar"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblIsHost" runat="server" Text='<% #Eval("IsHost") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblIsRegMailSent" runat="server" Text='<% #Eval("IsRegMailSent") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4">
                                                        <asp:Button ID="btnDeleteAttendee" runat="server" Text="Delete Attendee" Visible="False"
                                                            CssClass="Button_TopPad" OnClientClick="return confirm('Are you sure you want to delete the selected attendee(s)?');" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <div id="tpUploadAttendee">
                                            <asp:UpdatePanel ID="updUploadAttendee" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
                                                <ContentTemplate>
                                                    <table width="100%" cellpadding="0" cellspacing="0" style="margin: 5px 15px 5px 15px;">
                                                        <tr style="border-color: white;">
                                                            <td colspan="2" class="GroupHeader" style="height: 18px; text-align: left;" valign="middle">
                                                                Attendee Upload
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                <asp:Label ID="lbUploadAttendee" runat="server" Visible="False"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-top: 5px;">
                                                            <td width="15%" style="padding-left: 2px;">
                                                                <asp:Label ID="Label4" runat="server">Upload Attendee Details</asp:Label>
                                                            </td>
                                                            <td width="85%">
                                                                <asp:FileUpload ID="FileUploadControl" runat="server" Width="400px" Height="20px" />&nbsp;&nbsp;
                                                                <asp:HyperLink ID="hlnkDownloadTemplate" runat="server" NavigateUrl="~/Templates/Attendee_Template.xlsx"
                                                                    Text="Download Template"></asp:HyperLink>
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-top: 5px;">
                                                            <td colspan="2" style="padding-left: 2px;">
                                                                <asp:Button runat="server" ID="UploadButton" Text="Upload" CssClass="Button_TopPad"
                                                                    Width="100px" />
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-top: 5px;">
                                                            <td colspan="2">
                                                                <asp:Label runat="server" ID="StatusLabel" Text="Upload status: " Visible="false" />
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-top: 5px;">
                                                            <td colspan="2">
                                                                <div id="divAttendeeUpload" runat="server" visible="false">
                                                                    <asp:Label ID="lbFailedInsert" runat="server"></asp:Label><br />
                                                                    <div id="divScroll" style="overflow: auto; width: 96%; position: absolute; float: left;
                                                                        height: 175px">
                                                                        <asp:GridView ID="wgFailedRows" runat="server" Height="100%" Width="50%" AlternatingRowStyle-BackColor="Azure"
                                                                            AllowPaging="false">
                                                                            <HeaderStyle BackColor="#11459E" BorderStyle="Solid" BorderWidth="1px" Font-Bold="true"
                                                                                Font-Names="Arial" Font-Size="X-Small" ForeColor="#E1E8F5" />
                                                                            <RowStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" BackColor="White" />
                                                                            <PagerStyle BackColor="#D1D0CE" Wrap="true" Font-Bold="true" HorizontalAlign="Left" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2" style="height: 175px;">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                                <Triggers>
                                                    <asp:PostBackTrigger ControlID="UploadButton" />
                                                </Triggers>
                                            </asp:UpdatePanel>
                                        </div>
                                        <div id="tpAddEditAttendee">
                                            <table width="100%" cellpadding="0" cellspacing="0" style="margin: 5px 15px 5px 15px;">
                                                <tr style="border-color: white;">
                                                    <td class="GroupHeader" style="height: 18px; text-align: left;" valign="middle">
                                                        Attendee Details
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <table cellpadding="0" cellspacing="0" width="100%" style="margin: 5px 15px 5px 15px;"
                                                            runat="server" id="tblAttendeeNew" visible="false">
                                                            <tr>
                                                                <td style="padding-left: 2px; padding-bottom: 5px;">
                                                                    <asp:Label ID="lblAttendeeNew" runat="server" ForeColor="Red"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="padding-left: 2px;">
                                                                    <asp:Button ID="btnConfirmYes" Text="Yes" runat="server" CssClass="Button" OnClick="btnConfirmYes_Click" />
                                                                    <asp:Button ID="btnConfirmNo" Text="No" runat="server" CssClass="Button" OnClick="btnConfirmNo_Click" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="padding-top: 2px; padding-bottom: 5px;">
                                                                    <asp:Panel ID="pnlLine" runat="server" Width="100%" Height="2px" BackColor="#1e8ce1" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Panel ID="pnlAttendeeNew" runat="server">
                                                            <table width="100%" cellpadding="0" cellspacing="0" style="margin: 5px 15px 5px 15px;">
                                                                <tr>
                                                                    <td colspan="3">
                                                                        <asp:Label ID="lbAddAttendee" runat="server" Visible="False"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="3">
                                                                        <asp:ValidationSummary ID="valsSaveAttendee" DisplayMode="BulletList" HeaderText="Please fix the following errors:"
                                                                            runat="server" ValidationGroup="attendeeSave" CssClass="RequiredField" />
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="vertical-align: top" width="18%">
                                                                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                                                            <tr style="padding-top: 5px;">
                                                                                <td>
                                                                                    <asp:Label ID="lbClient" runat="server">Is Participant or Client</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:DropDownList ID="ddlClient" runat="server" Width="60" CssClass="RequiredField"
                                                                                        onchange="setFeedbackVisibility(this.value);">
                                                                                        <asp:ListItem>OwnClient</asp:ListItem>
                                                                                        <asp:ListItem>Client</asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="padding-top: 5px;">
                                                                                <td width="100px" style="padding-left: 2px;">
                                                                                    <asp:Label ID="lbFirstName" runat="server">First name</asp:Label>
                                                                                </td>
                                                                                <td valign="top">
                                                                                    <table cellpadding="0" cellspacing="0">
                                                                                        <tr>
                                                                                            <td style="text-align: left;">
                                                                                                <asp:DropDownList ID="ddlSalutation" runat="server">
                                                                                                    <asp:ListItem>Dr.</asp:ListItem>
                                                                                                    <asp:ListItem Selected="True">Mr.</asp:ListItem>
                                                                                                    <asp:ListItem>Mrs.</asp:ListItem>
                                                                                                    <asp:ListItem>Ms</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                            <td style="text-align: left; padding-left: 5px">
                                                                                                <asp:TextBox ID="txtFirstName" runat="server" ValidationGroup="attendeeSave" Width="175px"
                                                                                                    CssClass="RequiredField" MaxLength="100"></asp:TextBox>
                                                                                            </td>
                                                                                            <td style="text-align: left">
                                                                                                <asp:RequiredFieldValidator ID="reqFirstName" ControlToValidate="txtFirstName" runat="server"
                                                                                                    ValidationGroup="attendeeSave" Text="*" ErrorMessage="Enter first name"></asp:RequiredFieldValidator>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="padding-top: 5px;">
                                                                                <td style="padding-left: 2px;">
                                                                                    <asp:Label ID="lbLastName" runat="server">Last Name</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtLastName" runat="server" ValidationGroup="attendeeSave" Width="225px"
                                                                                        CssClass="RequiredField" MaxLength="100"></asp:TextBox>
                                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="txtLastName"
                                                                                        runat="server" ValidationGroup="attendeeSave" Text="*" ErrorMessage="Enter last name"></asp:RequiredFieldValidator>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="vertical-align: top; padding-top: 5px;">
                                                                                <td style="padding-left: 2px;">
                                                                                    <asp:Label ID="lbPrefAddress" runat="server" Width="180px">Preferrred Form Of Address</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtPrefAddress" runat="server" TextMode="MultiLine" Width="225px"
                                                                                        Height="50px" onkeypress="return truncMaxLength(this,'500');" onblur="truncMaxLength(this,'500');"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="padding-top: 5px;">
                                                                                <td style="padding-left: 2px;">
                                                                                    <asp:Label ID="lbEmailAddress" runat="server">Email Address</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtEmailAddress" runat="server" Width="225px" CssClass="RequiredField"
                                                                                        MaxLength="100"></asp:TextBox>
                                                                                    <asp:RequiredFieldValidator ID="reqEmailAddress" ControlToValidate="txtEmailAddress"
                                                                                        runat="server" ValidationGroup="attendeeSave" Text="*" ErrorMessage="Enter email address"></asp:RequiredFieldValidator>
                                                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtEmailAddress"
                                                                                        Display="Dynamic" Text="*" ErrorMessage="Enter proper format for email address"
                                                                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="attendeeSave"></asp:RegularExpressionValidator>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="padding-top: 5px;">
                                                                                <td style="padding-left: 2px;">
                                                                                    <asp:Label ID="lbOffice" runat="server">Company name/Office</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtOffice" runat="server" Width="225px" MaxLength="100" CssClass="RequiredField"></asp:TextBox>
                                                                                    <asp:RequiredFieldValidator ID="rqdCompany" ControlToValidate="txtOffice" runat="server"
                                                                                        ValidationGroup="attendeeSave" Text="*" ErrorMessage="Enter Company name/Office"></asp:RequiredFieldValidator>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="padding-top: 5px;">
                                                                                <td style="padding-left: 2px;">
                                                                                    <asp:Label ID="lbCity" runat="server">City</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtCity" runat="server" Width="225px" MaxLength="100"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="padding-top: 5px;">
                                                                                <td style="padding-left: 2px;">
                                                                                    <asp:Label ID="lbDirectDial" runat="server">Direct Dial</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtDirectDial" runat="server" Width="225px" MaxLength="50"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="padding-top: 5px;">
                                                                                <td style="padding-left: 2px;">
                                                                                    <asp:Label ID="lbMobileNumber" runat="server">Mobile Number</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtMobileNumber" runat="server" Width="225px" MaxLength="50"></asp:TextBox>
                                                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtMobileNumber"
                                                                                        Display="Dynamic" Text="*" ErrorMessage="The mobile number field expects a numeric value"
                                                                                        ValidationExpression="^[0-9]+$" ValidationGroup="attendeeSave"></asp:RegularExpressionValidator>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="vertical-align: top; padding-top: 5px;">
                                                                                <td style="padding-left: 2px;">
                                                                                    <asp:Label ID="lbSpecialityArea" runat="server">Specialty Area</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtSpecialityArea" runat="server" TextMode="MultiLine" Width="225px"
                                                                                        Height="48px" onkeypress="return truncMaxLength(this,'50');" onblur="truncMaxLength(this,'50');"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                    <td style="vertical-align: top; text-align: left;" width="15%">
                                                                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                                            <tr style="padding-top: 5px;">
                                                                                <td width="180px">
                                                                                    <asp:Label ID="lbAssistantName" runat="server">Assistant Name</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtAssistantName" runat="server" Width="180px" MaxLength="100"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="padding-top: 5px;">
                                                                                <td>
                                                                                    <asp:Label ID="lbAssistantNumber" runat="server">Assistant Number</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtAssistantNumber" runat="server" Width="180px" ValidationGroup="attendeeSave"
                                                                                        MaxLength="50"></asp:TextBox>
                                                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtAssistantNumber"
                                                                                        Display="Dynamic" Text="*" ErrorMessage="Enter numerics for assistant number"
                                                                                        ValidationExpression="^[0-9]+$" ValidationGroup="attendeeSave"></asp:RegularExpressionValidator>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="padding-top: 5px;">
                                                                                <td>
                                                                                    <asp:Label ID="lbAssistantEmail" runat="server">Assistant Email Address</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtAssistantEmail" runat="server" Width="180px" MaxLength="100"></asp:TextBox>
                                                                                    <asp:RegularExpressionValidator ID="regexAsstEmail" runat="server" ControlToValidate="txtAssistantEmail"
                                                                                        Display="Dynamic" Text="*" ErrorMessage="Enter proper format for assistant email address "
                                                                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="attendeeSave"></asp:RegularExpressionValidator>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="padding-top: 5px;">
                                                                                <td>
                                                                                    <asp:Label ID="lbAvailableStartDate" runat="server">Attendee Available Start Date</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <table cellpadding="0" cellspacing="0" width="100%">
                                                                                        <tr>
                                                                                            <td style="text-align: left" colspan="2">
                                                                                                <asp:TextBox ID="txtAvailableStartDate" runat="server" CssClass="mydatepickerclass"></asp:TextBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td style="padding-left: 5px;" class="style1">
                                                                                                <asp:DropDownList ID="ddlAvailableStartTimeHrs" runat="server">
                                                                                                    <asp:ListItem Value="00">00</asp:ListItem>
                                                                                                    <asp:ListItem Value="01">01</asp:ListItem>
                                                                                                    <asp:ListItem Value="02">02</asp:ListItem>
                                                                                                    <asp:ListItem Value="03">03</asp:ListItem>
                                                                                                    <asp:ListItem Value="04">04</asp:ListItem>
                                                                                                    <asp:ListItem Value="05">05</asp:ListItem>
                                                                                                    <asp:ListItem Value="06">06</asp:ListItem>
                                                                                                    <asp:ListItem Value="07">07</asp:ListItem>
                                                                                                    <asp:ListItem Value="08">08</asp:ListItem>
                                                                                                    <asp:ListItem Value="09">09</asp:ListItem>
                                                                                                    <asp:ListItem Value="10">10</asp:ListItem>
                                                                                                    <asp:ListItem Value="11">11</asp:ListItem>
                                                                                                    <asp:ListItem Value="12">12</asp:ListItem>
                                                                                                    <asp:ListItem Value="13">13</asp:ListItem>
                                                                                                    <asp:ListItem Value="14">14</asp:ListItem>
                                                                                                    <asp:ListItem Value="15">15</asp:ListItem>
                                                                                                    <asp:ListItem Value="16">16</asp:ListItem>
                                                                                                    <asp:ListItem Value="17">17</asp:ListItem>
                                                                                                    <asp:ListItem Value="18">18</asp:ListItem>
                                                                                                    <asp:ListItem Value="19">19</asp:ListItem>
                                                                                                    <asp:ListItem Value="20">20</asp:ListItem>
                                                                                                    <asp:ListItem Value="21">21</asp:ListItem>
                                                                                                    <asp:ListItem Value="22">22</asp:ListItem>
                                                                                                    <asp:ListItem Value="23">23</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                            <td style="padding-left: 5px;">
                                                                                                <asp:DropDownList ID="ddlAvailableStartTimeMns" runat="server">
                                                                                                    <asp:ListItem Value="00">00</asp:ListItem>
                                                                                                    <asp:ListItem Value="15">15</asp:ListItem>
                                                                                                    <asp:ListItem Value="30">30</asp:ListItem>
                                                                                                    <asp:ListItem Value="45">45</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="padding-top: 5px;">
                                                                                <td>
                                                                                    <asp:Label ID="lbAvailEndDate" runat="server">Attendee Available End Date</asp:Label>
                                                                                </td>
                                                                                <td align="left">
                                                                                    <table cellpadding="0" cellspacing="0">
                                                                                        <tr>
                                                                                            <td style="text-align: left" colspan="3">
                                                                                                <asp:TextBox ID="txtAvailableEndDate" runat="server" CssClass="mydatepickerclass"></asp:TextBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td style="padding-left: 5px;" class="style1">
                                                                                                <asp:DropDownList ID="ddlAvailableEndTimeHrs" runat="server">
                                                                                                    <asp:ListItem Value="00">00</asp:ListItem>
                                                                                                    <asp:ListItem Value="01">01</asp:ListItem>
                                                                                                    <asp:ListItem Value="02">02</asp:ListItem>
                                                                                                    <asp:ListItem Value="03">03</asp:ListItem>
                                                                                                    <asp:ListItem Value="04">04</asp:ListItem>
                                                                                                    <asp:ListItem Value="05">05</asp:ListItem>
                                                                                                    <asp:ListItem Value="06">06</asp:ListItem>
                                                                                                    <asp:ListItem Value="07">07</asp:ListItem>
                                                                                                    <asp:ListItem Value="08">08</asp:ListItem>
                                                                                                    <asp:ListItem Value="09">09</asp:ListItem>
                                                                                                    <asp:ListItem Value="10">10</asp:ListItem>
                                                                                                    <asp:ListItem Value="11">11</asp:ListItem>
                                                                                                    <asp:ListItem Value="12">12</asp:ListItem>
                                                                                                    <asp:ListItem Value="13">13</asp:ListItem>
                                                                                                    <asp:ListItem Value="14">14</asp:ListItem>
                                                                                                    <asp:ListItem Value="15">15</asp:ListItem>
                                                                                                    <asp:ListItem Value="16">16</asp:ListItem>
                                                                                                    <asp:ListItem Value="17">17</asp:ListItem>
                                                                                                    <asp:ListItem Value="18">18</asp:ListItem>
                                                                                                    <asp:ListItem Value="19">19</asp:ListItem>
                                                                                                    <asp:ListItem Value="20">20</asp:ListItem>
                                                                                                    <asp:ListItem Value="21">21</asp:ListItem>
                                                                                                    <asp:ListItem Value="22">22</asp:ListItem>
                                                                                                    <asp:ListItem Value="23">23</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                            <td style="padding-left: 5px;">
                                                                                                <asp:DropDownList ID="ddlAvailableEndTimemm" runat="server">
                                                                                                    <asp:ListItem Value="00">00</asp:ListItem>
                                                                                                    <asp:ListItem Value="15">15</asp:ListItem>
                                                                                                    <asp:ListItem Value="30">30</asp:ListItem>
                                                                                                    <asp:ListItem Value="45">45</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:CustomValidator ID="custAttendeDate" runat="server" ControlToValidate="txtAvailableEndDate"
                                                                                                    Display="Dynamic" ValidationGroup="attendeeSave" Text="*" ErrorMessage="start date is later than end date."></asp:CustomValidator>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="vertical-align: top; padding-top: 20px;">
                                                                                <td colspan="2">
                                                                                    <fieldset style="width: 400px;">
                                                                                        <legend>
                                                                                            <asp:Label ID="lbCountryRepresent" runat="server" ForeColor="Black">Country Representing</asp:Label>
                                                                                        </legend>
                                                                                        <table id="tblCountryRepresent" cellpadding="0" cellspacing="0">
                                                                                            <tr style="height: 10px;">
                                                                                                <td>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td rowspan="4" valign="top">
                                                                                                    <asp:ListBox ID="lstCountry" runat="server" SelectionMode="multiple" Width="180px"
                                                                                                        Height="125px"></asp:ListBox>
                                                                                                </td>
                                                                                                <td align="center" style="padding-right: 5px; padding-left: 5px;">
                                                                                                    <asp:Button ID="btnAllRight" runat="server" Style="font-weight: bold; width: 25px;"
                                                                                                        Text="&gt;&gt;" CssClass="Button" />
                                                                                                </td>
                                                                                                <td rowspan="4" valign="top">
                                                                                                    <asp:ListBox ID="lstCountryRepresent" runat="server" SelectionMode="Multiple" Width="180px"
                                                                                                        Height="125px"></asp:ListBox>
                                                                                                </td>
                                                                                                <td rowspan="4" style="padding-left: 5px;">
                                                                                                    &nbsp;
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td align="center" style="padding-right: 5px; padding-left: 5px">
                                                                                                    <asp:Button ID="btnRight" runat="server" Text="&gt;" Style="font-weight: bold; width: 25px;"
                                                                                                        CssClass="Button" />
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td align="center" style="padding-right: 5px; padding-left: 5px">
                                                                                                    <asp:Button ID="btnLeft" runat="server" Text="&lt;" Style="font-weight: bold; width: 25px;"
                                                                                                        CssClass="Button" />
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td align="center" style="padding-right: 5px; padding-left: 5px">
                                                                                                    <asp:Button ID="btnAllLeft" runat="server" Text="&lt;&lt;" Style="font-weight: bold;
                                                                                                        width: 25px;" CssClass="Button" />
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td colspan="4" align="left" style="padding-right: 5px; padding-left: 5px">
                                                                                                    <asp:Label ID="lblCountryRepeseErrorMessage" runat="server" Text="" ForeColor="Red"></asp:Label>
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </fieldset>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                    <td style="vertical-align: top; text-align: left;">
                                                                        <table cellpadding="0" cellspacing="0" border="0">
                                                                            <tr style="padding-top: 5px;">
                                                                                <td>
                                                                                    <asp:Label ID="lbRegistrationDate" runat="server">Registration Date</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <table cellpadding="0" cellspacing="0">
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:TextBox ID="txtRegistrationDate" runat="server" CssClass="mydatepickerclass"></asp:TextBox>
                                                                                            </td>
                                                                                            <td>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="padding-top: 5px;">
                                                                                <td>
                                                                                    <asp:Label ID="lbVisaRequired" runat="server">Visa Required</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:DropDownList ID="ddlVisaRequired" runat="server" Width="60">
                                                                                        <asp:ListItem>Yes</asp:ListItem>
                                                                                        <asp:ListItem>No</asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="padding-top: 5px; padding-bottom: 5px;">
                                                                                <td width="250px">
                                                                                    <asp:Label ID="lbConfirmation" runat="server">Confirmation of Attendance</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:DropDownList ID="ddlConfirmation" runat="server" Width="60">
                                                                                        <asp:ListItem>Yes</asp:ListItem>
                                                                                        <asp:ListItem>No</asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </td>
                                                                            </tr>
                                                                            <tr id="trSendFeedback" runat="server">
                                                                                <td>
                                                                                    <asp:Label ID="lblSendFeedbackMail" runat="server">Send feedback mail</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:DropDownList ID="ddlSendFeedback" runat="server" Width="60">
                                                                                        <asp:ListItem>Yes</asp:ListItem>
                                                                                        <asp:ListItem Selected="True">No</asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </td>
                                                                            </tr>
                                                                            <tr id="trHost" style="padding-top: 5px; padding-bottom: 5px;" runat="server">
                                                                                <td>
                                                                                    <asp:Label ID="lblHost" runat="server">Is Host</asp:Label>
                                                                                </td>
                                                                                <td style="padding-top: 5px; padding-bottom: 5px;">
                                                                                    <asp:DropDownList ID="ddlHost" runat="server" Width="60">
                                                                                        <asp:ListItem>Yes</asp:ListItem>
                                                                                        <asp:ListItem Selected="True">No</asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="vertical-align: top; display: none;" id="trIssuesDiscussion" runat="server">
                                                                                <td>
                                                                                    <asp:Label ID="lbCountryIssues" runat="server">Issues of discussion</asp:Label>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtCountryIssues" runat="server" TextMode="MultiLine" Width="240px"
                                                                                        Height="80px" onkeypress="return truncMaxLength(this,'255');" onblur="truncMaxLength(this,'255');"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                            <tr style="display: none;" id="trPrivateSession" runat="server">
                                                                                <td width="250px">
                                                                                    <asp:Label ID="lbPrivateSessin" runat="server">Complimentary Private Session Required</asp:Label>
                                                                                </td>
                                                                                <td style="padding-top: 5px; padding-bottom: 5px;">
                                                                                    <asp:DropDownList ID="ddlPrivateSession" runat="server" Width="60">
                                                                                        <asp:ListItem>Yes</asp:ListItem>
                                                                                        <asp:ListItem>No</asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                            <table cellpadding="0" cellspacing="0" width="100%" style="margin: 5px 15px 5px 15px;">
                                                                <tr>
                                                                    <td style="padding-left: 2px;">
                                                                        <asp:Button ID="btnAddAttendee" Text="Add Attendee" runat="server" ValidationGroup="attendeeSave"
                                                                            CssClass="Button" />
                                                                        <asp:Button ID="btnClearAttendee" Text="Clear" runat="server" CssClass="Button" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </asp:Panel>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <div id="tpAddEditRooms">
                                            <asp:UpdatePanel ID="uproom" runat="server" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <table cellpadding="0" cellspacing="0" width="100%" style="margin: 5px 15px 5px 15px;">
                                                        <tr style="border-color: white;">
                                                            <td class="GroupHeader" style="height: 18px; text-align: left;" colspan="4" valign="middle">
                                                                Room Details
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-top: 5px;">
                                                            <td colspan="4">
                                                                <asp:Label ID="lblRoomMessage" runat="server"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-top: 5px;">
                                                            <td colspan="4">
                                                                <asp:ValidationSummary ID="valsRoom" DisplayMode="BulletList" HeaderText="Please fix the following errors:"
                                                                    runat="server" ValidationGroup="roomSave" CssClass="RequiredField" />
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-top: 5px;">
                                                            <td width="15%" style="padding-left: 2px;">
                                                                <asp:Label ID="lbRoomName" runat="server">Room Name/Number</asp:Label>
                                                            </td>
                                                            <td width="20%">
                                                                <asp:TextBox ID="txtRoomName" runat="server" Width="215px" CssClass="RequiredField"
                                                                    MaxLength="100"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rqdRoomName" runat="server" ErrorMessage="Enter Room Name"
                                                                    Text="*" ControlToValidate="txtRoomName" ValidationGroup="roomSave" Display="Dynamic"></asp:RequiredFieldValidator>
                                                            </td>
                                                            <td width="15%">
                                                                <asp:Label ID="lblRoomPhone" runat="server">Phone Number</asp:Label>
                                                            </td>
                                                            <td width="50%">
                                                                <asp:TextBox ID="txtRoomPhone" runat="server" Width="215px" MaxLength="15"></asp:TextBox>
                                                                <asp:RegularExpressionValidator ID="regExPhone" runat="server" ControlToValidate="txtRoomPhone"
                                                                    Text="*" Display="Dynamic" ErrorMessage="Phone Number expects a numeric value"
                                                                    ValidationExpression="^[0-9]+$" ValidationGroup="roomSave"></asp:RegularExpressionValidator>
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-top: 5px;">
                                                            <td style="padding-left: 2px;">
                                                                <asp:Label ID="lblRoomCapacity" runat="server">Room Capacity</asp:Label>
                                                            </td>
                                                            <td colspan="3">
                                                                <asp:TextBox ID="txtRoomCapacity" runat="server" Width="215px" MaxLength="7"></asp:TextBox>
                                                                <asp:RegularExpressionValidator ID="regexCapacity" runat="server" ControlToValidate="txtRoomCapacity"
                                                                    Text="*" Display="Dynamic" ErrorMessage="Room Capacity expects a numeric value"
                                                                    ValidationExpression="^[0-9]+$" ValidationGroup="roomSave"></asp:RegularExpressionValidator>
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-top: 5px;">
                                                            <td colspan="4" style="padding-left: 2px;">
                                                                <table cellpadding="0" cellspacing="0" border="0">
                                                                    <tr>
                                                                        <td>
                                                                            <asp:CheckBox ID="chkFlipCart" runat="server" Text="Flip Chart" />
                                                                        </td>
                                                                        <td style="padding-left: 30px">
                                                                            <asp:CheckBox ID="chkNetworkconnectors" runat="server" Text="Network Connectors" />
                                                                        </td>
                                                                        <td style="padding-left: 30px">
                                                                            <asp:CheckBox ID="chkWhiteboard" runat="server" Text="Whiteboard" />
                                                                        </td>
                                                                        <td style="padding-left: 30px">
                                                                            <asp:CheckBox ID="chkProjector" runat="server" Text="Projector/Screen" />
                                                                        </td>
                                                                        <td style="padding-left: 30px">
                                                                            <asp:CheckBox ID="chkConfTelephone" runat="server" Text="Conference Telephone" />
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="4" style="padding-left: 2px;">
                                                                <asp:Button ID="btnAddRoom" Text="Add Room" runat="server" ValidationGroup="roomSave"
                                                                    OnClick="btnAddRoom_Click" CssClass="Button_TBPad" />
                                                                <asp:Button ID="btnClearRoom" Text="Clear" runat="server" OnClick="btnClearRoom_Click"
                                                                    CssClass=" Button_TBPad" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="4" style="padding-left: 2px;">
                                                                <asp:GridView ID="uwgEventRooms" runat="server" Width="100%" Visible="false" AlternatingRowStyle-BackColor="Azure"
                                                                    AutoGenerateColumns="false" PagerSettings-Mode="Numeric" PagerStyle-HorizontalAlign="Left"
                                                                    AllowPaging="true" OnRowCommand="uwgEventRooms_ItemCommand" PageSize="5" OnRowDataBound="uwgEventRooms_onRowDataBound"
                                                                    OnPageIndexChanging="uwgEventRooms_OnPageIndexChanging">
                                                                    <HeaderStyle BackColor="#11459E" BorderStyle="Solid" BorderWidth="1px" Font-Bold="true"
                                                                        Font-Names="Arial" Font-Size="X-Small" ForeColor="#E1E8F5" />
                                                                    <RowStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" BackColor="White" />
                                                                    <PagerStyle BackColor="#D1D0CE" Wrap="true" Font-Bold="true" HorizontalAlign="Left" />
                                                                    <Columns>
                                                                        <asp:TemplateField>
                                                                            <ItemTemplate>
                                                                                <asp:CheckBox ID="chkDelete" runat="server" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField Visible="false">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="lblRoomId" Text='<% #Eval("RoomId") %>' runat="server" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="Room Name" HeaderText="Room Name" ControlStyle-Width="100px" />
                                                                        <asp:BoundField DataField="Capacity" HeaderText="Capacity" ControlStyle-Width="50px" />
                                                                        <asp:BoundField DataField="Phone Number" HeaderText="Phone Number" ControlStyle-Width="50px" />
                                                                        <asp:TemplateField HeaderText="Projector">
                                                                            <ItemTemplate>
                                                                                <asp:CheckBox ID="chkProjector" Checked='<% #Eval("Projector") %>' runat="server" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Conference Phone">
                                                                            <ItemTemplate>
                                                                                <asp:CheckBox ID="chkConferenceRoom" Checked='<% #Eval("Conference Phone") %>' runat="server" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Flipchart">
                                                                            <ItemTemplate>
                                                                                <asp:CheckBox ID="chkFlipchart" Checked='<% #Eval("Flipchart") %>' runat="server" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Network Connection">
                                                                            <ItemTemplate>
                                                                                <asp:CheckBox ID="chkNetworkConnection" Checked='<% #Eval("Network Connection") %>'
                                                                                    runat="server" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Whiteboard">
                                                                            <ItemTemplate>
                                                                                <asp:CheckBox ID="chkWhiteboard" Checked='<% #Eval("Whiteboard") %>' runat="server" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField>
                                                                            <ItemTemplate>
                                                                                <asp:ImageButton ID="ibtnEditRoom" runat="server" Style="cursor: pointer;" ToolTip="Edit room"
                                                                                    CommandName="EditRoom" AlternateText="Edit" ImageUrl="~/_includes/images/edit.png"
                                                                                    CommandArgument='<% #Eval("RoomId") %>' />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="4" style="padding-left: 2px;">
                                                                <asp:Button ID="btnDeleteRoom" Text="Delete Rooms" runat="server" OnClientClick="return confirm('Are you sure you want to delete the selected room(s)?');"
                                                                    OnClick="btnDeleteRooms_Click" CssClass=" Button_TBPad" Visible="false" />
                                                                <asp:HiddenField ID="hdnRoomId" runat="server" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </div>
                                        <div id="tpQuestions">
                                            <table width="100%" cellpadding="0" cellspacing="0" style="margin: 5px 15px 5px 15px;">
                                                <tr style="border-color: white;">
                                                    <td class="GroupHeader" style="height: 18px; text-align: left;" valign="middle">
                                                        Event Questions
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblQuestions" runat="server" Visible="False"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding-left: 2px; padding-top: 5px;">
                                                        <div id="divQuestions" style="overflow: auto; height: 200px; position: relative;
                                                            width: 767px;">
                                                            <asp:GridView runat="server" ID="ugQuestions" SelectedRowStyle-CssClass="GridSelectedRow"
                                                                AutoGenerateColumns="false" OnRowDataBound="ugQuestions_onRowDataBound" Width="100%">
                                                                <HeaderStyle BackColor="#11459E" BorderStyle="Solid" Font-Bold="True" Font-Names="Arial"
                                                                    Font-Size="X-Small" ForeColor="#E1E8F5" />
                                                                <RowStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" BackColor="White" />
                                                                <AlternatingRowStyle BackColor="Azure" />
                                                                <Columns>
                                                                    <asp:TemplateField>
                                                                        <ItemTemplate>
                                                                            <asp:CheckBox ID="chkAddQuestion" runat="server" Checked='<%# Eval("IsMapped")%>' />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField HeaderText="Question" DataField="Name" />
                                                                    <asp:TemplateField Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblCode" runat="server" Text='<%# Eval("Code")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding-left: 2px; padding-top: 5px;">
                                                        <asp:Button ID="btnSaveQuestions" Text="Save Questions" runat="server" ValidationGroup="saveQuestion"
                                                            CssClass="Button" OnClick="btnSaveQuestions_Click" />
                                                        <asp:Button ID="btnSelectAll" Text="Select All Questions" runat="server" CssClass="Button"
                                                            OnClientClick="selectAllChk();return false;" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <asp:HiddenField ID="hdneventattendee" runat="server" />
                                    </div>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </div>
                <div id="tpSearchEvent" style="width: 100%">
                    <div>
                        <asp:UpdatePanel ID="updPnlSearchEvent" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
                            <ContentTemplate>
                                <table cellpadding="0" cellspacing="0" style="width: 100%; margin: 5px 15px 5px 15px;">
                                    <tr style="border-color: white;">
                                        <td class="GroupHeader" style="height: 18px; text-align: left;" colspan="4" valign="middle">
                                            Event Search
                                        </td>
                                    </tr>
                                    <tr style="padding-top: 5px;">
                                        <td style="width: 15%; padding-left: 2px;">
                                            <asp:Label ID="lb2EventName" runat="server">Event Name</asp:Label>
                                        </td>
                                        <td style="width: 20%;">
                                            <asp:TextBox ID="txt2EventName" runat="server" Width="215px" MaxLength="100"></asp:TextBox>
                                        </td>
                                        <td style="width: 15%;">
                                            <asp:Label ID="lb2Country" runat="server">Country Location</asp:Label>
                                        </td>
                                        <td style="width: 50%;">
                                            <asp:DropDownList ID="ddl2Country" runat="server">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr style="padding-top: 5px;">
                                        <td style="width: 15%; padding-left: 2px;">
                                            <asp:Label ID="lb2StartDate" runat="server">Event Start Date Time</asp:Label>
                                        </td>
                                        <td style="width: 20%">
                                            <table cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td style="text-align: left;">
                                                        <asp:TextBox ID="txt2StartDate" runat="server" Width="129px" CssClass="mydatepickerclass"></asp:TextBox>
                                                    </td>
                                                    <td style="padding-left: 5px;">
                                                        <asp:DropDownList ID="ddl2StartTimeHrs" runat="server">
                                                            <asp:ListItem>00</asp:ListItem>
                                                            <asp:ListItem>01</asp:ListItem>
                                                            <asp:ListItem>02</asp:ListItem>
                                                            <asp:ListItem>03</asp:ListItem>
                                                            <asp:ListItem>04</asp:ListItem>
                                                            <asp:ListItem>05</asp:ListItem>
                                                            <asp:ListItem>06</asp:ListItem>
                                                            <asp:ListItem>07</asp:ListItem>
                                                            <asp:ListItem>08</asp:ListItem>
                                                            <asp:ListItem>09</asp:ListItem>
                                                            <asp:ListItem>10</asp:ListItem>
                                                            <asp:ListItem>11</asp:ListItem>
                                                            <asp:ListItem>12</asp:ListItem>
                                                            <asp:ListItem>13</asp:ListItem>
                                                            <asp:ListItem>14</asp:ListItem>
                                                            <asp:ListItem>15</asp:ListItem>
                                                            <asp:ListItem>16</asp:ListItem>
                                                            <asp:ListItem>17</asp:ListItem>
                                                            <asp:ListItem>18</asp:ListItem>
                                                            <asp:ListItem>19</asp:ListItem>
                                                            <asp:ListItem>20</asp:ListItem>
                                                            <asp:ListItem>21</asp:ListItem>
                                                            <asp:ListItem>22</asp:ListItem>
                                                            <asp:ListItem>23</asp:ListItem>
                                                            <asp:ListItem>24</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td style="padding-left: 5px;">
                                                        <asp:DropDownList ID="ddl2StartTimemins" runat="server">
                                                            <asp:ListItem>00</asp:ListItem>
                                                            <asp:ListItem>15</asp:ListItem>
                                                            <asp:ListItem>30</asp:ListItem>
                                                            <asp:ListItem>45</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td style="width: 15%">
                                            <asp:Label ID="lb2EndDate" runat="server">Event End Date Time</asp:Label>
                                        </td>
                                        <td style="width: 50%">
                                            <table cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td style="text-align: left;">
                                                        <asp:TextBox ID="txt2EndDate" Width="129px" runat="server" CssClass="mydatepickerclass"></asp:TextBox>
                                                    </td>
                                                    <td style="padding-left: 5px;">
                                                        <asp:DropDownList ID="ddl2EndTimeHrs" runat="server">
                                                            <asp:ListItem>00</asp:ListItem>
                                                            <asp:ListItem>01</asp:ListItem>
                                                            <asp:ListItem>02</asp:ListItem>
                                                            <asp:ListItem>03</asp:ListItem>
                                                            <asp:ListItem>04</asp:ListItem>
                                                            <asp:ListItem>05</asp:ListItem>
                                                            <asp:ListItem>06</asp:ListItem>
                                                            <asp:ListItem>07</asp:ListItem>
                                                            <asp:ListItem>08</asp:ListItem>
                                                            <asp:ListItem>09</asp:ListItem>
                                                            <asp:ListItem>10</asp:ListItem>
                                                            <asp:ListItem>11</asp:ListItem>
                                                            <asp:ListItem>12</asp:ListItem>
                                                            <asp:ListItem>13</asp:ListItem>
                                                            <asp:ListItem>14</asp:ListItem>
                                                            <asp:ListItem>15</asp:ListItem>
                                                            <asp:ListItem>16</asp:ListItem>
                                                            <asp:ListItem>17</asp:ListItem>
                                                            <asp:ListItem>18</asp:ListItem>
                                                            <asp:ListItem>19</asp:ListItem>
                                                            <asp:ListItem>20</asp:ListItem>
                                                            <asp:ListItem>21</asp:ListItem>
                                                            <asp:ListItem>22</asp:ListItem>
                                                            <asp:ListItem>23</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td style="padding-left: 5px;">
                                                        <asp:DropDownList ID="ddl2EndTimemins" runat="server">
                                                            <asp:ListItem>00</asp:ListItem>
                                                            <asp:ListItem>15</asp:ListItem>
                                                            <asp:ListItem>30</asp:ListItem>
                                                            <asp:ListItem>45</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr style="padding-top: 5px;">
                                        <td style="padding-left: 2px;" colspan="4">
                                            <asp:Button ID="btnSearch" Text="Search" runat="server" CssClass="Button" Width="90px" />
                                            <asp:Button ID="btnClearEventSearch" Text="Clear Search" runat="server" CssClass="Button"
                                                Width="90px" />
                                        </td>
                                    </tr>
                                    <tr style="padding-top: 5px;">
                                        <td colspan="4">
                                            <div id="wgDataDiv" runat="server">
                                                <asp:GridView ID="wgData" runat="server" AllowPaging="true" AutoGenerateColumns="false"
                                                    PageSize="10" ShowFooter="false" Width="95%" SelectedRowStyle-CssClass="GridSelectedRow"
                                                    ShowHeader="true" AlternatingRowStyle-BackColor="Azure" PagerSettings-Mode="Numeric"
                                                    PagerStyle-HorizontalAlign="Left" OnPageIndexChanging="wgData_PageIndexChanged"
                                                    OnRowCommand="wgData_ItemCommand">
                                                    <Columns>
                                                        <asp:BoundField HeaderText="EventID" DataField="EventID" Visible="false" />
                                                        <asp:BoundField HeaderText="EventName" DataField="EventName" ControlStyle-Width="270px" />
                                                        <asp:BoundField HeaderText="EventDescription" DataField="EventDescription" ControlStyle-Width="265px" />
                                                        <asp:BoundField HeaderText="StartDate" DataField="StartDate" ControlStyle-Width="160px" />
                                                        <asp:BoundField HeaderText="EndDate" DataField="EndDate" ControlStyle-Width="160" />
                                                        <asp:BoundField HeaderText="Country" DataField="Country" ControlStyle-Width="180px" />
                                                        <asp:TemplateField>
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="btnEditEvent" runat="server" Style="cursor: pointer;" ToolTip="Edit Event"
                                                                    CommandArgument='<%# Eval("EventID") %>' CommandName="Edit Event" AlternateText="Edit"
                                                                    ImageUrl="~/_includes/images/edit.png" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="btnEditMeeting" runat="server" Style="cursor: pointer;" ToolTip="Schedule Meeting"
                                                                    CommandArgument='<%# Eval("EventID") %>' CommandName="Edit Meeting" AlternateText="Edit"
                                                                    ImageUrl="~/_includes/images/meeting.png" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="hlnkRegistration" Text="Own Client" NavigateUrl='<%# "~/ParticipantRegistration.aspx?EventId=" + DataBinder.Eval(Container.DataItem,"EventId") %>'
                                                                    ToolTip="Participant Registration" runat="server" Target="_self" />&nbsp;|&nbsp;<asp:HyperLink
                                                                        ID="hlnkClientRegistration" Text="Client" NavigateUrl='<%# "~/EventClientRegistration.aspx?EventId=" + DataBinder.Eval(Container.DataItem,"EventId") %>'
                                                                        ToolTip="Client Participant Registration" runat="server" Target="_self" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <HeaderStyle BackColor="#11459E" BorderStyle="Solid" BorderWidth="1px" Font-Bold="true"
                                                        Font-Names="Arial" Font-Size="X-Small" ForeColor="#E1E8F5" />
                                                    <RowStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" BackColor="White" />
                                                    <PagerStyle BackColor="#D1D0CE" Wrap="true" Font-Bold="true" HorizontalAlign="Left" />
                                                </asp:GridView>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </div>
                <asp:HiddenField ID="hdnFieldEventID" runat="server" />
                <asp:HiddenField ID="hdnSelectedRooms" runat="server" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
